package com.helloandroid.dialogs

import android.content.Context
import com.helloandroid.R
import com.helloandroid.base.BaseDialog

class PermissionNotifyDialog(ctx:Context,val openAction:()->Unit) : BaseDialog(ctx) {
    override fun getContentViewResId(): Int  = R.layout.permission_notify

    override fun initView() {
        findBtn(R.id.btnClose).setOnClickListener { dismiss() }
        findBtn(R.id.btnOpen).setOnClickListener {
            openAction.invoke()
            dismiss()
        }
    }

    override fun initData() {
    }
}